var serverUrl = "http://121.89.210.255:8080/jinneng/"

function setupWebViewJavascriptBridge(callback) {
    if (window.WebViewJavascriptBridge) { return callback(WebViewJavascriptBridge); }
    if (window.WVJBCallbacks) { return window.WVJBCallbacks.push(callback); }
    window.WVJBCallbacks = [callback];
    var WVJBIframe = document.createElement('iframe');
    WVJBIframe.style.display = 'none';
    WVJBIframe.src = 'wvjbscheme://__BRIDGE_LOADED__';
    document.documentElement.appendChild(WVJBIframe);
    setTimeout(function() { document.documentElement.removeChild(WVJBIframe) }, 0)
}

setupWebViewJavascriptBridge(function(bridge) {
     bridge.registerHandler('testJavascriptHandler', function(data, responseCallback) {
        alert('JS方法被调用:'+data);
        responseCallback('js执行过了');
     })
})()

var tradeInfoList = [
	{
		"module": "",
		"moduleName":"全部",
		"selected":true
	},
	{
		"module": "[2]",
		"moduleName":"清洁能源",
		"selected":false
	},
	{
		"module": "[3]",
		"moduleName":"煤炭",
		"selected":false
	},
	{
		"module": "[4]",
		"moduleName":"电力电网",
		"selected":false
	},
	{
		"module": "[5]",
		"moduleName":"房地产",
		"selected":false
	},
	{
		"module": "[6]",
		"moduleName":"金融",
		"selected":false
	},
	{
		"module": "[7]",
		"moduleName":"现代服务",
		"selected":false
	},
]

var bookModuleList = [
	{
		"module": "",
		"moduleName":"全部",
		"selected":false
	},
	{
		"module": "[1]",
		"moduleName":"学习全书",
		"selected":false
	},
	{
		"module": "[2]",
		"moduleName":"政治历史",
		"selected":false
	},
	{
		"module": "[3]",
		"moduleName":"文化社会",
		"selected":false
	},{
		"module": "[4]",
		"moduleName":"文学艺术",
		"selected":false
	},
	{
		"module": "[5]",
		"moduleName":"教育科技",
		"selected":false
	},
	{
		"module": "[6]",
		"moduleName":"军事法律",
		"selected":false
	},
	{
		"module": "[7]",
		"moduleName":"宗教哲学",
		"selected":false
	},
	{
		"module": "[8]",
		"moduleName":"人文地理",
		"selected":false
	},
	{
		"module": "[9]",
		"moduleName":"医药卫生",
		"selected":false
	},
	{
		"module": "[10]",
		"moduleName":"经济管理",
		"selected":false
	},
	{
		"module": "[11]",
		"moduleName":"人物传记",
		"selected":false
	},{
		"module": "[12]",
		"moduleName":"综合性图书",
		"selected":false
	}
]
